/********************************************************************************
* File Name:	welcomeWorker.h
* Description:	第10章实例训练          
* Reference book:《Linux环境下Qt4图形界面与MySQL编程》，机械工业出版社.2012.1  
* E_mail: openlinux2011@gmail.com		                
*
********************************************************************************/
#ifndef WELCOMEWORKER_H
#define WELCOMEWORKER_H

#include <QtGui/QWidget>
#include <QSqlTableModel>
#include <QMessageBox>
#include <QSqlError>
#include <QString>
#include <QSqlRelationalTableModel>
#include "ui_welcomeWorker.h"

//工作人员界面类
class WelcomeWorker: public QDialog,public Ui_WelcomeWorker
{
        Q_OBJECT
private:
    QSqlTableModel *workerAddMenuModel;
    QSqlRelationalTableModel *workerSearchOrderModel;
    void submit();
public:
        WelcomeWorker(QWidget* parent = 0 );

private slots: /*槽函数*/
        void submitWorkerEnter_clicked();
        void submitWorkerMenuDelete_clicked();
        void submitWorkerMenuChange_clicked();
        void submitWorkerMenuSearch_clicked();    
        void submitWorkerOrderSearchAll_clicked();    
};
#endif // WELCOMEWORKER_H
